import request from "@/libs/request";

const basePath = '/appcloud-dashboard' ;

export const apiUrls = {
    deleteAlarmHistory : basePath + '/api/alamHistory/deleteAlarmHistory/',
    pageAlarmHistory : basePath + '/api/alamHistory/pageAlarmHistory',
    updateAlarmHistory : basePath + '/api/alamHistory/updateAlarmHistory/'
}

//删除告警历史
export async function deleteAlarmHistory(id){
	return request( apiUrls.deleteAlarmHistory + id, {
      method:'GET'
  })
}
//分页查询告警历史
export async function pageAlarmHistory(params){
	return request( apiUrls.pageAlarmHistory , {
      method:'POST',
      body:params
  })
}
//修改告警历史状态
export async function updateAlarmHistory(historyId,status){
	return request( apiUrls.updateAlarmHistory + `${historyId}/${status}`, {
      method:'GET'
  })
}